package com.faiz.picturebed.registry;

import com.faiz.picturebed.common.PictureType;
import com.faiz.picturebed.registry.beanregistry.AbstractBeanRegistry;
import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Component
public @interface BeanRegistrant {

    @AliasFor(annotation = Component.class)
    String value() default "";

    PictureType[] pictureTypes() default {};

    Class<? extends AbstractBeanRegistry> registry();

}
